package com.example.shop_car_2208.adapter

import com.bumptech.glide.Glide
import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.viewholder.BaseViewHolder
import com.example.shop_car_2208.R
import com.example.shop_car_2208.entity.CarEntity
import com.example.shop_car_2208.utils.GlideUtils

class PayAdapter:BaseQuickAdapter<CarEntity,BaseViewHolder>(R.layout.item_pay) {
    override fun convert(holder: BaseViewHolder, item: CarEntity) {
        holder.setText(R.id.pay_desc,item.goods_desc)
        holder.setText(R.id.pay_count,"X ${item.count}")
        holder.setText(R.id.pay_price,"￥ ${item.goods_default_price}")
        GlideUtils.loafImage(context,holder.getView(R.id.pay_icon),item.goods_default_icon)
    }
}